package com.guogee.util;

import java.security.MessageDigest;

public class EncryptMD5 {
	/**
	 * @function MD5 encrypt
	 */
	public static String enCrypt(String input) throws Exception{;
		MessageDigest mess;
		String output = "";
		mess = MessageDigest.getInstance("MD5");
		mess.update(input.getBytes()); 
		output = ByteStringUtils.bytetoString(mess.digest());
		return output;
	}
}
